const state = {
  userName: "盖亚",
  token: 'gylskajfklsjglsk'
}
const getters = {

}
const mutations = {
  SET_USERNAME(state, data) {
    state.userName = data
  }
}

const actions = {
  changeName({ commit }, data) {
    commit('SET_USERNAME', data)
  }
}

export default {
  // 开启命名空间
  namespaced: true,
  state,
  getters,
  mutations,
  actions
}